package com.inspur.dgov.bsp.system.config;

import com.inspur.dgov.common.secure.registry.SecureRegistry;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * secure模块api放行配置
 *
 * @Author chiyupei
 * @Date 19/6/26 下午9:00
 * @Version 1.0
 * @Description secure模块api放行配置
 */
@Configuration
public class RegistryConfiguration implements WebMvcConfigurer {

    @Bean
    public SecureRegistry secureRegistry() {
        SecureRegistry secureRegistry = new SecureRegistry();
        secureRegistry.excludePathPatterns("/web/**");
        return secureRegistry;
    }
}
